<?php
class CategoryView extends SideList
{
	public $title = 'Category';
	
	public function getItems()
	{
	    return Category::model()->findAll(array('condition' => 'publish = true', 'select' => 'id,name'));
	}
	
	public function getUrl($model)
	{
	    return CHtml::link($model->name, array('/index/index', 'cid' => $model->id));
	}
}